<html>
<head>
    <title>DOM-Drag – Draggable Window Demo</title>
    <script src="22-DOMDrag.js" type="text/javascript"></script>
    <script type="text/javascript">
    window.onload = function(){
        // Initalize the DOM-Drag function, making the element with
        // an ID of 'window' draggable
        Drag.init( document.getElementById("window") );
    };
    </script>
    <style>
    #window {
        border: 1px solid #DDD;
        border-top: 15px solid #DDD;
        width: 250px;
        height: 250px;
        position:absolute;
        margin-top:50px;
    }
    </style>
</head>
<body>
    <h1>Draggable Window Demo</h1>

    <div id="window">I am a draggable window, feel free to move me around!</div>
</body>
</html>

